//
//  UIViewController+GQSemiView.h
//  ContinueEducation
//
//  Created by 迟建国 on 2018/7/10.
//  Copyright © 2018年 CE. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^GQCompletionBlock)(void);
typedef void(^UIAlertViewCallBackBlock)(NSInteger buttonIndex);

@interface UIViewController (GQSemiView)

@property (nonatomic, strong)UIView *gq_backgroundView;
/**
 *  激活点击空白处隐藏
 */
@property (nonatomic, assign)BOOL gq_enableBlankDismiss;
@property (nonatomic, copy) UIAlertViewCallBackBlock alertViewCallBackBlock;
/**
 *  仿AlertView的展现动画
 */
- (void)gq_presentLikeAlertView:(UIView *)view;

/**
 *  从中间由小到大展现
 */
-(void)gq_presentSemiView:(UIView*)alert;
/**
 *  从底部推出View
 */
- (void)gq_presentFromeBottomView:(UIView *)alert;
/**
 *  从底部退出ViewController
 */
- (void)gq_presentSemiViewController:(UIViewController *)vc;
/**
 *  移除展现的视图
 */
-(void)gq_removeBgView;

/**
 *  UIAlertController for UIAlertControllerStyleAlert allow down 8.0
 */
- (void)gq_presentAlertControllerTitle:(NSString *)title message:(NSString *)message actionTitles:(NSArray *)subTitles handler:(void(^)(NSInteger index))handler;
/**
 *  UIAlertController for is alertStyle allow down 8.0
 */
- (void)gq_presentAlertControllerStyle:(BOOL)alertStyle hasCancel:(BOOL)hasCancel title:(NSString *)title message:(NSString *)message actionTitles:(NSArray *)subTitles handler:(void(^)(NSInteger index))handler;

- (void)addWaterMarkText:(NSString*)waterText WithTextColor:(UIColor*)color WithFont:(UIFont*)font WithOpacity:(float)opacity;
@end
